#include "iostream"

using namespace std;

#define MaxSize 10

struct ElemType{
	int n;
};
typedef struct Queue{
	ElemType data[MaxSize];
	int rear;
	int front;
}SqQueue;

void init(SqQueue &S);
void destory(SqQueue &S);

void enQueue(SqQueue &S,ElemType e);
void deQueue(SqQueue &S,ElemType &e);

void getHead(SqQueue &S,ElemType &e);
bool isEmpty(SqQueue S);
bool isFul(Squeue S);


int main(){
	 
	return 0;
}

void init(SqQueue &S){
	S.front=0;
	S.rear=0;
	
}
void destory(SqQueue &S){
	S.front=0;
	S.rear=0;
}
bool isEmpty(SqQueue S){
	if(S.front==-1 )
		return true;
	return false;
}
bool isFul(SqQueue S){
	if((S.rear+1)%MaxSize == Q.front)
		return true;
	return false;
}
void enQueue(SqQueue &S,ElemType e){
	if(isFull(S))
		return ;
	S.data[S.rear] = e;
	S.rear=(S.rear+1)%MaxSize;
}
void deQueue(SqQueue &S,ElemType &e){
	if(isEmpty(S))
		return;
	e = S.data[S.front];
	S.front=(S.front+1)%MaxSize;
}

void getHead(SqQueue &S,ElemType &e){
	if(isEmpty(S))
		return;
	e = S.data[S.front];
}















